/**
 * @author 黄波
 * 创建日期：2011Aug 30, 2011
 * TODO// N/A
 */
package com.platform.dev.action;

import java.util.List;

import com.platform.dev.bo.DevBo;
import com.platform.pojo.Power;

//加载权限模块信息
public class LoadPowerModuleAction extends DevSupport{
	private List<Power> powers;
	private String nodeId;
	private String nodeText;
	public String getNodeId() {
		return nodeId;
	}

	public void setNodeId(String nodeId) {
		this.nodeId = nodeId;
	}

	public String getNodeText() {
		return nodeText;
	}

	public void setNodeText(String nodeText) {
		this.nodeText = nodeText;
	}

	/**
	 * @return the powers
	 */
	public List<Power> getPowers() {
		return powers;
	}

	/**
	 * @param powers the powers to set
	 */
	public void setPowers(List<Power> powers) {
		this.powers = powers;
	}

	@Override
	public String execute() throws Exception {
		DevBo bo = new DevBo();
		powers = bo.getPowers();
		nodeText = new String(nodeText.getBytes("iso-8859-1"), "utf-8");
		return SUCCESS;
	}
	
}
